cc.Class({
    extends: cc.Component,

    properties: {
        can: {
            type:cc.Node,
            default:null
        },
        cant: {
            type:cc.Node,
            default:null
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    // start () {
    // },

    // update (dt) {},

    setDelete(d) {
        if (d) {
            this.can.active = true;
            this.cant.active = false;
        } else {
            this.can.active = false;
            this.cant.active = true;
        }
    }
});
